import request from '@/utils/request'

// 查询门店信息
export function getBranchStoreDetail(query) {
  return request({
    url: '/stores/search',
    method: 'get',
    params: query
  })
}
// 查询门店详细
export function getStores(storesId) {
  return request({
    url: '/stores/' + storesId,
    method: 'get'
  })
}
// 更新门店信息
export function updateStores(data) {
  return request({
    url: 'stores/update',
    method: 'put',
    data:data
  })
}
// 新增门店信息
export function addStores(data) {
  return request({
    url: 'stores/add',
    method: 'post',
    data: data
  })
}

// 删除门店信息
export function delStores(storesId) {
  return request({
    url: 'stores/' + storesId,
    method: 'delete'
  })
}
